<template>
  <div>
    B
    <h1>{{ title }}</h1>
  </div>
</template>

<script>
import eventBus from '@/eventBus'
export default {
  data() {
    return {
      title: '',
    }
  },
  created() {
    eventBus.$on('sendTitle', (res) => {
      console.log('res:', res)
      this.title = res.title
    })
  },
}
</script>

<style></style>
